<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>初始函数</title>
    <style type="text/css">
        head{
            color: black;
        }
        body{
            background-color: #F3EFE0;
        }
        .bot{
            color: #918E84;
            font-family:Arial, Helvetica, sans-serif;
            font-size: 24px;
            position: relative;
            right: 200px;
            float: right;
        }
    </style>
</head>
<body>
    <button id="btn">点击</button>
    <div id="demo" style="display: none">这是一个惊喜!</div>
    <div class="bot">
        <input type="button" value="返回" onclick="location.href = '../章节目录/第四章.html'">
        <br><br><br><br><br><br><br><br>
        <h3>Please appreciate((●'◡'●))......</h3>
    </div>
    <script>
        function getObj(id){ //根据id获取元素对象
            return document.getElementById(id);
        }
        function show(){
            getObj('demo').style.display = 'block';
        }
        getObj('btn').onclick=show;
    </script>
</body>
</html>